package com.javaenzk.wfx.manager.service;

import com.javaenzk.wfx.manager.dao.WxbcustomerDAO;
import com.javaenzk.wfx.manager.po.Wxb_Customer;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CustomerService{

    @Resource
    private WxbcustomerDAO wxbcustomerDAO;

    public List<Wxb_Customer> queryALLcustomer() throws Exception{
        return wxbcustomerDAO.queryAllCustomer();
    }


    public  void  addCustomer(Wxb_Customer wxb_customer) throws Exception{
        wxbcustomerDAO.addCustomer(wxb_customer);
    }


}
